<?php
$this->breadcrumbs=array(
    'View Project'=>array('project/update/'.$model->project_id.'/#projectCountry'),
    'Create',
);

$this->menu=array(
    array('label'=>'View Project','url'=>array('project/update/'.$model->project_id.'/#projectCountry')),
    //array('label'=>'Manage ProjectNationality','url'=>array('admin')),
);
?>

<h1>Link Country of <?php echo $projectModel->name_en;?></h1>

<?php $form=$this->beginWidget('bootstrap.widgets.TbActiveForm',array(
    'id'=>'project-nationality-form',
    'enableAjaxValidation'=>false,
)); ?>

    <p class="help-block">Fields with <span class="required">*</span> are required.</p>

    <?php echo $form->errorSummary($model); ?>

    <?php echo $form->hiddenField($model,'project_id',array('class'=>'span5')); ?>
    <?php echo CHtml::label('Country', 'ProjectNationality_nationality_id'); ?>
    <?php echo $form->dropDownList($model, 'nationality_id',
    CHtml::listData(Nationality::model()->getAllActive(), 'id', 'country')); ?>
    <?php echo $form->error($model,'natioanlity_id'); ?>

    <div class="form-actions">
        <?php $this->widget('bootstrap.widgets.TbButton', array(
            'buttonType'=>'submit',
            'type'=>'primary',
            'label'=>$model->isNewRecord ? 'Create' : 'Save',
        )); ?>
    </div>

<?php $this->endWidget(); ?>